package com.infore.siteManagement.conf;

import java.lang.reflect.Array;

import org.hibernate.transform.AliasToBeanResultTransformer;

public class LowerAliasToBeanResultTransformer extends AliasToBeanResultTransformer{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
 
    public LowerAliasToBeanResultTransformer(Class<?> resultClass) {
        super(resultClass);
    }
 
    @Override
    public Object transformTuple(Object[] tuple, String[] aliases) {
        for (int i = 0; i < aliases.length; i++) {
            Array.set(aliases, i, aliases[i].toUpperCase());
        }
        
        return super.transformTuple(tuple, aliases);
    }

}
